package com.payment.system.domain;

import com.payment.common.annotation.Excel;
import com.payment.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 公告表 hatchet_announcement
 *
 * @author payment
 * @date 2019-01-14
 */
public class Announcement extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;
    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;
    /**
     * 内容
     */
    @Excel(name = "内容")
    private String content;
    /**
     * 修改人
     */
    private String updateUser;
    /**
     * 修改时间
     */
    private Date updateDate;
    /**
     * 10A启用 10B禁用
     */
    @Excel(name = "状态", readConverterExp = "10A=启用,10B=禁用")
    private String status;
    /**
     * 生效开始时间
     */
    @Excel(name = "生效开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date effectiveFromTime;
    /**
     * 生效结束时间
     */
    @Excel(name = "生效结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date effectiveToTime;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setEffectiveFromTime(Date effectiveFromTime) {
        this.effectiveFromTime = effectiveFromTime;
    }

    public Date getEffectiveFromTime() {
        return effectiveFromTime;
    }

    public void setEffectiveToTime(Date effectiveToTime) {
        this.effectiveToTime = effectiveToTime;
    }

    public Date getEffectiveToTime() {
        return effectiveToTime;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("content", getContent())
                .append("updateUser", getUpdateUser())
                .append("updateDate", getUpdateDate())
                .append("status", getStatus())
                .append("effectiveFromTime", getEffectiveFromTime())
                .append("effectiveToTime", getEffectiveToTime())
                .toString();
    }

}
